package com.gscitysfy.cus.drain.modules.command.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gscitysfy.cus.drain.modules.command.dto.ResourceDispatchDto;
import com.gscitysfy.cus.drain.modules.command.entity.InstructTeam;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Administrator
 * @since 2022-10-24 18:57:31
 */
public interface IInstructTeamService extends IService<InstructTeam> {

   List<InstructTeam> fetchByDangerSituation(Long dangerSituationId);

    /**
     * 级联删除资源调度
     *
     * @param dangerSituationIdList
     * @return
     */
    Boolean deleteBatch(List<Long> dangerSituationIdList);

    /**
     * 级联资源调度
     *
     * @param dto
     * @return
     */
    Boolean saveBatch(ResourceDispatchDto dto);
}
